package com.example.springmvcproject.Vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BankVo implements Serializable {
    private Integer bankId;
    @NotBlank(message = "银行名称不能为空")
    @Length(min = 1,max = 100,message = "银行卡名称需要在1~100个字符之间")
    private String bankName;
}
